<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="box" style="width: 100;height: 100;border: 1px solid red;">123</div>
</body>
</html>
<script src="js/jquery-1.12.4.js"></script>
<script>
  $(function() {
    $.ajax({
      url:'https://free-api.heweather.net/s6/weather/now?location=qingdao&key=c7efffa6fc9d4da09884418a3794dae8',

      success:function(data) {
        $('#box').html(data)
        console.log(data)
      },
      error:function(data) {
        alert("error")
      }
    })
  })
</script>